<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>使用正则表达式分割多字节字符串</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mb-split" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_split</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">mb_split</span> &mdash; <span class="dc-title">使用正则表达式分割多字节字符串</span></p>

 </div>
   
 <div class="refsect1 description" id="refsect1-function.mb-split-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_split</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pattern</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$limit</code><span class="initializer"> = -1</span></span>
  ] ) : <span class="type">array</span></div>

  <p class="simpara">
   使用正则表达式 <code class="parameter">pattern</code> 分割多字节 <code class="parameter">string</code> 并返回结果 <span class="type"><a href="language.types.array.html" class="type array">array</a></span>。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-split-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">pattern</code></dt>

     <dd>

      <p class="para">
       正则表达式。
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">string</code></dt>

     <dd>

      <p class="para">
       待分割的 <span class="type"><a href="language.types.string.html" class="type string">string</a></span>。
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">limit</code></dt>

     <dd>

      <span class="simpara">
       如果指定了可选参数 <code class="parameter">limit</code>，将最多分割为 <code class="parameter">limit</code> 个元素。
      </span>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mb-split-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   <span class="type"><a href="language.types.array.html" class="type array">array</a></span> 的结果。
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mb-split-notes">
  <h3 class="title">注释</h3>
  
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">The
character encoding specified by <span class="function"><a href="mb_regex_encoding.html" class="function">mb_regex_encoding()</a></span>
will be used as the character encoding for this function by default.</p></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-split-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="mb_regex_encoding.html" class="function" rel="rdfs-seeAlso">mb_regex_encoding()</a> - Set/Get character encoding for multibyte regex</span></li>
    <li class="member"><span class="function"><a href="mb_ereg.html" class="function" rel="rdfs-seeAlso">mb_ereg()</a> - Regular expression match with multibyte support</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>